package com.jingdianjichi.practice.api.common;


/**
 * 类功能描述:分页请求实例
 *
 * @Author: 张广焱
 * @Date: 2024-09-15  09:29:05
 * @Version: 1.0.0
 */
public class PageInfo {

    private Integer pageNo = 1;

    private Integer pageSize = 20;

    public Integer getPageNo() {
        if (pageNo == null || pageNo < 1) {
            return 1;
        }
        return pageNo;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize < 1 || pageSize > Integer.MAX_VALUE) {
            return 20;
        }
        return pageSize;
    }


}
